import java.io.*;
import java.lang.Math;
import java.util.ArrayList;
public class GateBlock
{
	private ArrayList<GATE> gates;
	private int step;
	public GateBlock(int s)
	{
		gates=new ArrayList<GATE>();
		step=s;
	}
	public void addGates(GATE[]gates_array)
	{
		for(GATE gate:gates_array)
		{
			gates.add(gate);
		}
	}
	public void addGate(GATE g)
	{
		gates.add(g);
	}
	public void output()
	{
		System.out.println("");
		System.out.println("Block:"+step);
		for(GATE gate:gates)
		{
			gate.output();
		}
	}
}

